﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ewell.BizComponent.UI.Core.ViewModel
{
    public class EsSlotSettingVm
    {
        /**
         * 排班时段设置标识
         */
        public string esSlotSettingId { get; set; }
        /**
         * 开始时间
         */
        public DateTime? beginAtTime { get; set; }
        /**
         * 结束时间
         */
        public DateTime? endAtTime { get; set; }

        /**
         * 总号数
         */
        public int? quantity { get; set; }
        /**
         * 计划总号数
         */
        public int? quantityPlaned { get; set; }
        /**
         * 已使用号数
         */
        public int? quantityUsed { get; set; }
        /**
         * 剩余号数
         */
        public int? quantityRemain { get; set; }
        /// <summary>
        /// 是否有号
        /// </summary>
        public bool hasQua => quantityRemain > 0;
    }
}
